<html>
<html lang="en">
<head>
    <meta charset="UTF-8">

</head>

<body>
<h1 style="color: green" onclick="this.innerHTML='thank you'">click me</h1>
<h1 style="color: yellow" onclick="changeText(this)">click me</h1>
<h1 style="color: blue" id="click">在js方法中哥标签设置点击监听(方法必须放在body中才有效，header中无效)</h1>
<script>

</script>
</body>

</html>